<template>
    <Crud table="charge_order" :columns="columns" v-model:saveFormData="saveFormData" v-model:searchObj="searchObj" :showAdd="false" :showEdit="false">
        <template #save>
        </template>
        <template #search>
            <a-form
                layout="inline"
            >
              <a-form-item>
                  <a-input placeholder="订单号" v-model:value="searchObj.order_sn"/>
              </a-form-item>
              <a-form-item>
                <RemoteSelect placeholder="用户" table="user" name_key="nickname" v-model:value="searchObj.user_id"/>
              </a-form-item>
              <a-form-item>
                <a-select
                    v-model:value="searchObj.is_pay"
                    placeholder="是否支付"
                    :options="[{label:'已支付',value:1},{label:'未支付',value:0}]"
                >
                </a-select>
              </a-form-item>
            </a-form>
        </template>


    </Crud>
</template>

<script>

export default {
    name: "list",
    data: function () {
        return {
            saveFormData: {},
            searchObj: {
              is_pay:1,
            },
            columns: [
                {
                    title: '订单号',
                    key: 'order_sn',
                }, {
                    title: '时间',
                    key: 'add_time',
                }, {
                    title: '用户ID',
                    key: 'user_id',
                }, {
                    title: '金额',
                    key: 'pay_money',
                }, {
                    title: '是否支付',
                    key: 'is_pay',
                },
            ],
        };
    },
    components: {},
    created() {
    },
    methods: {
    }
}
</script>

<style scoped lang="less">

</style>